<!--
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1 
 * @Author: HHL
 * @Date: 2023-10-11 09:12:08
 * @LastEditTime: 2025-06-19 20:12:21
 * @LastEditors: sueRimn
-->



<template>
  <popup-bottom ref="popup" :hideClose="true" :hideTitle="true" :isMaskClick="false" @close="onClose">
    <template #default>
      <view class="success-popup">
        <image src="https://image.chushouya.com/assets/images/product/icon_close@2x.png" mode="aspectFill" class="close" @click="onClose"></image>
        <image src="https://image.chushouya.com/assets/images/product/icon_success@2x.png" mode="aspectFill" class="success"></image>
        <view class="line-1">恭喜您的订单提交成功</view>
        <view class="line-2">请保持电话畅通，预计5分钟客服会与您联系</view>
        <view class="line-3">关注<text>出手鸭</text>公众号，随时获取订单进度</view>
        <view class="btn" @click="$emit('handleOrder')">查看订单</view>
      </view>
    </template>
  </popup-bottom>
</template>

<script>

export default {
  props: {
    
  },

  methods: {
    onOpen() {
      this.$refs.popup.open()
    },

    onClose() {
      console.log('close')
      this.$refs.popup.close()
    }
  }
}
</script>

<style lang="scss" scoped>
.success-popup {
  padding: 32rpx;
  background-color: #fff;
  background: #FFFFFF;
  border-radius: 32rpx 32rpx 0rpx 0rpx;
  box-sizing: border-box;
  text-align: center;
  .close {
    width: 24rpx;
    height: 24rpx;
    display: block;
    text-align: right;
    margin-bottom: 84rpx;
    margin-left: auto;
  }
  .success {
    width: 112rpx;
    height: 112rpx;
  }
  .line-1 {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 36rpx;
    color: #333333;
  }
  .line-2 {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 26rpx;
    color: #999999;
    margin-top: 12rpx;
    margin-bottom: 124rpx;
  }
  .line-3 {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 26rpx;
    color: #999999;
    text {
      color: #FF6500;
    }
  }
  .btn {
    width: 100%;
    height: 96rpx;
    line-height: 96rpx;
    background: #FFCE46;
    border-radius: 48rpx;
    text-align: center;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 32rpx;
    color: #333333;
    margin-top: 24rpx;
  }
}
</style>